import axios from '@/request/http'
import { commonOutDTO } from '@/api/common.d'

export default class sjqxService {
  /**获取单位部门 */
  static getDwbm(data: any): Promise<commonOutDTO<any>> {
    return axios.post('/api/zzjg/dwbm/queryByDwbm', data)
  }
  /**获取单位部门人员 */
  static queryByDwbmYhqx(data: any): Promise<commonOutDTO<any>> {
    return axios.post('/api/zzjg/rybm/queryByDwQx', data)
  }
  /**新增修改人员数据权限 */
  static updateRysjqx(data: any): Promise<commonOutDTO<any>> {
    return axios.post('/api/qx/rysjqx/update', data)
  }
  /**获取人员数据权限 */
  static getRysjqx(data: any): Promise<commonOutDTO<any>> {
    return axios.post('/api/qx/rysjqx/get', data)
  }
  /**新增修改角色数据权限 */
  static updateJssjqx(data: any): Promise<commonOutDTO<any>> {
    return axios.post('/api/qx/jssjqx/update', data)
  }
  /**获取角色数据权限 */
  static getJssjqx(data: any): Promise<commonOutDTO<any>> {
    return axios.post('/api/qx/jssjqx/get', data)
  }
  /**获取案件类别 */
  static getAjTree(): Promise<commonOutDTO<any>> {
    return axios.post('/api/dm/ajlbbm/listTree')
  }
  /**获取单位部门 */
  static getBmbm(data: any): Promise<commonOutDTO<any>> {
    return axios.post('/api/zzjg/bmbm/queryByDwbm', data)
  }
  /**复制数据权限 */
  static copyDataqxApi(data: any): Promise<commonOutDTO<any>> {
    return axios.post('/api/qx/rysjqx/copy', data)
  }
}
